package com.zerui.manager.web.cmd;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @Author wh
 * @create_time 2023-05-31 11:00
 */
@Getter
@Setter
@ToString
public class AccessAuthDeviceBindCmd {

	@ApiModelProperty("门禁授权id")
	@JsonFormat(shape = JsonFormat.Shape.STRING)
	@NotNull(message = "门禁授权id不能为空")
	private Long accessAuthId;

	@ApiModelProperty("门禁设备id")
	@JsonFormat(shape = JsonFormat.Shape.STRING)
	@NotEmpty(message = "门禁设备id不能为空")
	private List<Long> deviceIds;

}
